.announcement-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 40rpx;
  display: flex;
  flex-direction: column;
}

/* 固定顶部区域（包括导航栏、发布按钮和筛选栏） */
.fixed-top-section {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f5f5;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.main-content {
  flex: 1;
  padding: 20rpx;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 0; /* 配合flex使用 */
}

/* 创建区域 */
.create-section {
  margin-bottom: 20rpx;
  padding: 0 20rpx;
  
  .create-btn {
    width: 100%;
    background: #5cb85c;
    color: white;
    font-size: 30rpx;
    font-weight: 500;
    padding: 25rpx;
    border-radius: 16rpx;
    border: none;
    
    &::after {
      border: none;
    }
  }
}

/* 筛选区域 */
.filter-section {
  margin-bottom: 20rpx;
  padding: 0 20rpx;
  
  .filter-picker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25rpx 30rpx;
    border-radius: 16rpx;
    font-size: 28rpx;
    color: #333;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
    
    .arrow-down {
      width: 24rpx;
      height: 24rpx;
      opacity: 0.5;
      transform: rotate(90deg);
    }
  }
}

/* 公告列表 */
.announcement-list {
  flex: 1;
  height: 0; /* 配合flex使用 */
  margin-top: 20rpx;
}

.announcement-card {
  background: white;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  
  .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20rpx;
    
    .announcement-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
      flex: 1;
      margin-right: 20rpx;
      line-height: 1.3;
    }
    
    .announcement-status {
      padding: 8rpx 16rpx;
      border-radius: 16rpx;
      font-size: 24rpx;
      white-space: nowrap;
      
      // 草稿状态
      &.status-0 {
        background: #fff3e0;
        color: #ff9800;
      }
      
      // 已发布状态
      &.status-1 {
        background: #e8f5e8;
        color: #5cb85c;
      }
      
      // 已下线状态
      &.status-2 {
        background: #ffebee;
        color: #f44336;
      }
    }
  }
  
  .announcement-content {
    margin-bottom: 20rpx;
    
    .content-text {
      font-size: 28rpx;
      color: #666;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
    }
  }
  
  .announcement-meta {
    display: flex;
    flex-direction: column;
    gap: 8rpx;
    margin-bottom: 25rpx;
    padding-top: 15rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .time-info {
      font-size: 24rpx;
      color: #999;
      line-height: 1.5;
    }
  }
  
  .announcement-actions {
    display: flex;
    gap: 15rpx;
    
    .action-btn {
      flex: 1;
      padding: 18rpx 20rpx;
      border-radius: 12rpx;
      font-size: 26rpx;
      border: none;
      min-width: 0; /* 允许按钮收缩 */
      
      &.primary {
        background: #5cb85c;
        color: white;
      }
      
      &.secondary {
        background: #f8f9fa;
        color: #666;
        border: 1rpx solid #e9ecef;
      }
      
      &.danger {
        background: #ff4757;
        color: white;
      }
      
      &::after {
        border: none;
      }
    }
  }
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 60rpx;
  text-align: center;
  
  .empty-icon {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 30rpx;
    opacity: 0.3;
  }
  
  .empty-text {
    font-size: 30rpx;
    color: #999;
    margin-bottom: 40rpx;
  }
  
  .create-btn {
    background: #5cb85c;
    color: white;
    border-radius: 25rpx;
    font-size: 28rpx;
    padding: 20rpx 40rpx;
    border: none;
    
    &::after {
      border: none;
    }
  }
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
}

.create-modal {
  max-height: 90vh;
  
  .modal-body {
    .form-group {
      margin-bottom: 30rpx;
      
      .form-label {
        display: block;
        font-size: 28rpx;
        font-weight: 600;
        color: #333;
        margin-bottom: 15rpx;
      }
      
      .form-input {
        width: 100%;
        padding: 25rpx 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 30rpx;
        background: #fafafa;
        
        &:focus {
          border-color: #5cb85c;
          background: white;
        }
      }
      
      .form-textarea {
        width: 100%;
        min-height: 200rpx;
        padding: 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 28rpx;
        background: #fafafa;
        line-height: 1.5;
        
        &:focus {
          border-color: #5cb85c;
          background: white;
        }
      }
      
      .char-count {
        display: block;
        text-align: right;
        font-size: 24rpx;
        color: #999;
        margin-top: 10rpx;
      }
      
      .picker-input {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25rpx 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 28rpx;
        background: #fafafa;
        
        .placeholder {
          color: #999;
        }
        
        .arrow-right {
          width: 24rpx;
          height: 24rpx;
          opacity: 0.5;
        }
      }
      
      radio-group {
        display: flex;
        flex-direction: column;
        gap: 20rpx;
        margin-top: 15rpx;
        
        .radio-item {
          display: flex;
          align-items: center;
          gap: 15rpx;
          
          radio {
            transform: scale(1.2);
          }
          
          text {
            font-size: 28rpx;
            color: #666;
          }
        }
      }
      
      .form-hint {
        display: block;
        font-size: 24rpx;
        color: #999;
        margin-top: 15rpx;
        line-height: 1.5;
        padding: 15rpx;
        background: #f8f9fa;
        border-radius: 8rpx;
      }
    }
  }
}

.modal-content {
  background: white;
  border-radius: 20rpx;
  width: 100%;
  max-width: 600rpx;
  overflow: hidden;
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    border-bottom: 1rpx solid #f0f0f0;
    
    .modal-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
    }
    
    .modal-close {
      font-size: 48rpx;
      color: #999;
      line-height: 1;
      padding: 10rpx;
    }
  }
  
  .modal-body {
    padding: 30rpx;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .modal-footer {
    display: flex;
    gap: 20rpx;
    padding: 30rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .cancel-btn {
      flex: 1;
      padding: 25rpx;
      background: #f5f5f5;
      color: #666;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
    
    .confirm-btn {
      flex: 1;
      padding: 25rpx;
      background: #5cb85c;
      color: white;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
      
      &:disabled {
        background: #ccc;
      }
    }
  }
}









